package com.j2ee.struts.action;
import java.util.Arrays;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class CollectionAction extends ActionSupport{
	
	private String[] hobbies ;

	public String[] getHobbies() {
		return hobbies;
	}

	public void setHobbies(String[] hobbies) {
		this.hobbies = hobbies;
	}
	
	public String showHobbies() {
		System.out.println(Arrays.asList(hobbies));
		return SUCCESS ;
	}

}
